package com.ym.pms.dao;

import com.ym.pms.model.Room;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface RoomMapper {
    int deleteByPrimaryKey(String rmCoding);

    int insert(Room record);

    int insertSelective(Room record);

    Room selectByPrimaryKey(String rmCoding);

    int updateByPrimaryKeySelective(Room record);

    int updateByPrimaryKey(Room record);

    List<Room> queryRoomList();

    List<Room> findByGender(String gender);

    List<Room> findByGenderAndSuCoding(String gender,String suCoding);

    List<Room> fuzzyQuery(Room room);

    Integer getBuildingMaxNo();

    String getRmName(String bkRmcoding);

    void changeStatus(String bkRmcoding, String souse);

    void deleteAllBySuCoding(String suCoding);

    void updateBunk(Object rmHavebunk, String bkRmcoding);

    String getStatus(String rmCoding);

    List<String> getAllCoding(String id);
}